-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unarmed weapon experience gain #62578
Fix unarmed weapon experience gain #62578
Conversation
93cb01f
to
bcc77cd
Compare
5803f3e
to
988fa59
Compare
Is this intended to still be in draft or is it ready for review? |
Seems to be working properly with a cursory inspection. Checked that unarmed skill is increasing when no weapon is worn and checked that both the weapon's damage type and unarmed skill is gaining xp when wielding a set of skewer knuckles. |
Hey sorry had a really busy end to the work week. I did want to take one
more pass at the armor values on the mod items. But if it looks good to
someone else we can probably mark it as ready for review. I just don't
wanna break any items.
…On Sat., Dec. 10, 2022, 2:30 p.m. intergalacticdata, < ***@***.***> wrote:
Seems to be working properly with a cursory inspection. Checked that
unarmed skill is increasing when no weapon is worn and checked that both
the weapon's damage type and unarmed skill is gaining xp when wielding a
set of skewer knuckles.
—
Reply to this email directly, view it on GitHub
<#62578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQBZ2YDYK33A5XIV5YTCQ3WMTK5PANCNFSM6AAAAAAST4O3LM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I'm now getting some errors that may be be related to this fix. The character in question has a set of skewer knuckles in their inventory, but is not wearing them. He also has less than 1 unarmed skill. I noticed the errors sometime after taking the skewers off. These messages occur during long activities, sleep being the easiest to trigger. They may be occurring more often. 00:19:21.736 ERROR : src/item.cpp:7284 [bool item::has_flag(const flag_id &, bool) const] Attempted to check invalid flag_id UNARMED_WEAPON
Backtrace emission took 1 seconds. |
So you are saying you are getting the errors when you loaded this fix into your world? |
Any movement possible on this PR? |
Could not trigger the skewer error with a new save or with an old save that got the skewer before the change |
No. When adding this fix, it worked fine. Several days later, on a new character I began seeing the issue while sleeping, crafting etc. I think there may have been some updates to experimental in that time period. I haven't looked at this patch in some time as unarmed experience seems to be working in experimental for most of the weapons I've used recently. Not all, but most. Scrap knuckles aren't training bash damage currently (before anyone asks). |
2077b83
to
b9ff317
Compare
Summary
Bugfixes "Using worn unarmed weapons raises unarmed skill"
Purpose of change
Resolves #61682
Note: If you are a mod creator and see this, please suggest changes to the PR to match the specific values you'd like to see on your items. At the time of writing this, the values are extremely WIP and I plan to make corrections to what is there. But if you have the exact values you'd like to see there, please let me know and I'll fix it up.
Describe the solution
Since the attack vector changes made in #53954 using unarmed weapons has not been properly training unarmed skills. This is because those changes removed a change added in #41209 which added a temporary
UNARMED_WEAPON
flag to items covering your hands when not wielding a weapon.This first commit of the PR removes all usage of the
UNARMED_WEAPON
flag in c++, instead checking for arms where needed. This should fix all non mod related items to train unarmed properly.The second commit removes all uses of the UNARMED_WEAPON flag in JSON, including all mods. Potentially includes some undesirable changes to mod items unless feedback is received for all items, but maybe better than stable with unarmed weapons not training properly.
The third commit removes the flag entirely, probably breaking some third party mods, but this sounds okay based on some discussion in the stable push channel.
Describe alternatives you've considered
Adding back
UNARMED_WEAPON
to all the unarmed weapons but I don't think that's the move.Testing
WIP
Additional context